#ifndef _PREFS_H_
#define _PREFS_H_



class Prefs {
 private:
  
  int mode;
  int SetOption(int optkey, char *optarg);
  
  
  int LoadFromFile(const char *path);
  void Usage();
  void Usage_s();
public:
	 char mDomain[128];
	 char mServer[64];
	 int mPort;
     char mP1[8];
	 char mIndex[1024];
	 char mInput[1024];
     char mProgram[64];
     FILE * mLogFd;  
     int mNoES;
public:
  Prefs( char * app);
  ~Prefs();

  int LoadFromCLI(int argc,  char *argv[]);

};
extern Prefs * gPrefs;

#endif /* _PREFS_H_ */
